package com.lsy.clearssm.common;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author LSY
 * @Date 2021/10/22 13:18
 * @Version 1.0
 **/
public class JsonResult {

    private Map<String, Object> map = new HashMap<>();

    public void setCode(String code) {
        map.put("code", code);
    }

    public void setMsg(String msg) {
        map.put("msg", msg);
    }

    public void setField(String key, Object value) {
        map.put(key, value);
    }

    public Map<String, Object> getMap() {
        return map;
    }
}
